package com.xtoneict.auth.mapper;

import com.xtoneict.auth.entity.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hx
 * @since 2024-06-18
 */
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    @Select("select dep_id from department where dep_name = #{depName}")
    Integer selectIdByName(String depName);
}
